package cn.sdx.ssm.service;

import cn.sdx.ssm.dao.DeptMapper;
import cn.sdx.ssm.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sdx
 * @create 2021-05-12 2:04
 */
@Service
public class DeptService {
    @Autowired
    private DeptMapper mapper;
    public List<Dept> getAllDept() {
        return mapper.selectByExample(null);
    }
}
